package com.sunrise.xdoc.entity.contact;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.sunrise.xdoc.entity.AbstractAuditEntity;

/**
 * QuanLy, ThuNgan, PhucVuBan, DauBep...
 * 
 */
@Entity
@Table(name = "contact_loai_nhan_vien")
@Inheritance(strategy = InheritanceType.JOINED)
public class LoaiNhanVien extends AbstractAuditEntity {
	private static final long serialVersionUID = 9176073905247808820L;
	private String name;
	private long luongThamKhao = 0;

	@Column(name = "name", unique = true)
	@Length(max = 250)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "luong_tham_khao")
	public long getLuongThamKhao() {
		return luongThamKhao;
	}

	public void setLuongThamKhao(long luongThamKhao) {
		this.luongThamKhao = luongThamKhao;
	}
}
